var pool=require("./ConnectionDataBase");

function modul1(param, cb){
	
	var sql = "";
	
	var p = [params.dt1, params.dt2];
	
	pool.getConnection(function(err, conn){
		
		conn.query(sql, p, function(err, rows, fields){
			
			cb(err, rows);
			
			conn.release();
			
		});
		
	});
}

function modul2(param, cb){
	
	var sql1 = "";
	var sql2 = "";
	
	var p = [params.dt1,params.dt2];
	
	pool.getConnection(function(err, conn){
		
		conn.query(sql2 + ";" + sql2, p, function(err, rows, fields){
			
			cb(err, rows);
			
			conn.release();
			
		});
		
	});
}

module.exports={
    modul1:modul1,
    modul2:modul2
};